package com.jdkj.tools.util;


import org.apache.http.Header;
import org.apache.http.message.BasicHeader;

import java.util.HashMap;

public class GetSecondTestType {

    public static void main(String[] args) {
        String key="EP202401";
        //请求 URL:
        //http://192.168.11.7:8083/rest/raven/1.0/folderStructure/folders?entityKey=EP202401&folderId=4&_=1746674027048
        String folder="4";
        StringBuffer url=new StringBuffer("http://192.168.11.7:8083/rest/raven/1.0/folderStructure/folders?").append("entityKey=").append(key).append("&").append("folderId=")
                        .append(folder).append("&").append("_=").append(System.currentTimeMillis());
//        System.out.println(url.toString());
        Header[] headers = new Header[]{new BasicHeader("Cookie", TokenConstant.JSESSIONID),
        };
        String result = HttpClientUtil.doGet(url.toString(), new HashMap<>(), headers);

        System.out.println(result);

    }
}
